﻿#pragma once

#include "UserListView.h"

typedef struct RegWindow RegWindow;

typedef void (*RegWindowDelete)(RegWindow*);
typedef INT_PTR (*RegWindowDoModal)(RegWindow*);

// 注册窗口
struct RegWindow {
    HWND mHandle;                   // 窗口句柄
    int mIconIndex;                 // 头像索引
    UserListView* mListViewIcons;   // 头像列表控件
    HWND mParent;                   // 父窗口句柄
    LPTSTR mPassword;               // 密码
    LPTSTR mUsername;               // 用户名

    RegWindowDelete deleteSelf;
    RegWindowDoModal doModal;
};

RegWindow* New_RegWindow(HWND);
